const {request} = require('../request')


function getData (params){
    return request.get({ url: "/2" ,params} )
}

function getData2 (params){
    return request.post({ url: "aa/bb",params } )
}

// getData({})
// .then(res=>{
//     console.log('##',res);
// })

const a = {
    data(){
        return {
            time:null,
            tag:3
        }
    },
    abc(){
        this.time = setInterval( ()=>{
            if(this.tag <= 0){
                clearInterval(this.time)
            }else{
               this.tag -= 1;
               console.log(this.tag);
            }
        } ,1000)
    }
}

const boundFunction = a.abc.call(a.data());
